package edu.hgnc.adapter;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class HttpHandlerAdapter implements HandlerAdapter{

	private static final Log logger = LogFactory.getLog(HttpHandlerAdapter.class);

	@Override
	public <T> void handle(T handler){

		logger.debug("handle()");
		((HttpController) handler).doHttpHandler();
	}

	@Override
	public <T> boolean supports(T handler) {

		boolean isTrue = handler instanceof HttpController;
		logger.debug("support ? "+isTrue);
		return isTrue;
	}
}
